<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/vectrics.tld" prefix="vectrics" %>

<%@ page import="java.util.Iterator" %>
<%@ page import="java.util.Collection" %>
<%@ page import="org.vectrics.location.Location" %>
<%@ page import="org.vectrics.hibernate.ThreadProperties" %>
<%
	String domainId = ThreadProperties.getUriDomainId();

	String formAction = "/public/" + domainId + "/job/job_search_results";
%>

<html:form action="<%=formAction%>" method="post">
	<input type="hidden" name="showStatus" value="false">
	<table width="100%">
		<tr>
			<td valign="TOP">
				<table width="100%">
					<tr>
						<td valign="center" width="50%">
							<font class="compactLabelClass">Search Words
							</font>
						</td>
						<td valign="center" width="50%">
							<html:text property="searchPhrase" size="50" styleClass="compactEditClass" />
						</td>
					</tr>
					<tr>
						<td valign="center">
							<font class="compactLabelClass">&nbsp;Function</font>
						</td>
						<td valign="center">
							<vectrics:jobFunctionCombo property="functionCode" styleClass="compactComboClass" any="true"/>
						</td>
					</tr>
					<tr>
						<td valign="center">
							<font class="compactLabelClass">
								&nbsp;Location
							</font>
						</td>
						<td valign="center">
							<vectrics:locationCombo 
								property="location" 
								domainId="<%=domainId%>" 
								locationType="job.location"
								styleClass="compactComboClass"/>
						</td>
					</tr>
					<tr>
						<td valign="center">
							<font class="compactLabelClass">
								&nbsp;Time Span
							</font>
						</td>
						
						<td valign="center">
							<html:select property="postedStartTime" styleClass="compactComboClass">
								<option value="1066609635434">Past 1 Day</option>
								<option selected value="1066091235434">Past 7 Days</option>
								<option value="1064104035434">Past 1 Month</option>
								<option value="1051144035434">Past 6 Months</option>
							</html:select>
						</td>
					</tr>
					<tr>
						<td valign="center" align="left"></td>
						<td valign="center" align="left">
							<input name="submit" type="submit" value="Submit" class="smallFormButton">
						</td>
					</tr>
				</table>
			</td>
			<td valign="center"></td>
			<td valign="center">
				<table></table>
			</td>
		</tr>
	</table>
</html:form>
